<!DOCTYPE html>
<html>
<head>
    @include("/common/init.html"){}
</head>
<body>
	@include("/common/commonunity_header.html",{title:'社区'}){}
	<div class="layui-container fly-marginTop fly-user-main">
		<ul class="layui-nav layui-nav-tree layui-inline" lay-filter="user"> 
		    <li class="layui-nav-item"> <a href="${basePath}/my/index"> <i class="layui-icon"></i> 我的主页 </a> </li> 
		    <li class="layui-nav-item layui-this"> <a href="jacascript::void(0)"> <i class="layui-icon"></i> 用户中心 </a> </li> 
		    <li class="layui-nav-item "> <a href="${basePath}/my/mySet"> <i class="layui-icon"></i> 基本设置 </a> </li> 
		    <li class="layui-nav-item "> <a href="${basePath}/my/post"> <i class="iconfont icon-tiezi icon-big"></i> 我的帖子 </a> </li> 
		    <li class="layui-nav-item "> <a href="${basePath}/my/message"> <i class="layui-icon"></i> 我的消息 </a> </li> 
		    <li class="layui-nav-item "> <a href="${basePath}/my/product"> <i class="iconfont icon-product icon-big"></i> 我的产品 </a> </li>
		    <span class="layui-nav-bar" style="top: 122.5px; height: 0px; opacity: 0;"></span>
   		</ul>
   		<div class="site-tree-mobile layui-hide"> 
    		<i class="layui-icon"></i>
   		</div>
   		<div class="site-mobile-shade"></div> 
   		<div class="fly-panel fly-panel-user" pad20="" style="padding-top:20px;">
   			<div class="fly-msg" style="margin-bottom: 20px;">
   			</div>
   			<div class="layui-row layui-col-space20">
   				<div class="layui-col-md6">
   					<div class="fly-panel fly-signin fly-panel-border">
   						<div class="fly-panel-title">
   								签到 
   							<i class="fly-mid"></i> 
					        <a href="javascript:;" class="fly-link" id="LAY_signinHelp">说明</a> 
					        <i class="fly-mid"></i> 
					        <a href="javascript:;" class="fly-link" id="LAY_signinTop">活跃榜<span class="layui-badge-dot"></span></a> 
					        <span class="fly-signin-days">已连续签到<cite>${userSign.sign_count!}</cite>天</span> 
   						</div>
   						<div class="fly-panel-main fly-signin-main" style="height: 88px;">
   							@if(signed! == 1){
   							<button class="layui-btn layui-btn-disabled">今日已签到</button>
   							<span>获得了<cite>${experience!}</cite>金币</span>
   							@}else{
					        <button class="layui-btn layui-btn-danger" id="LAY_signin">今日签到</button>
					        <span>可获得<cite>${experience!}</cite>金币</span>
					        @}
				       	</div> 
   					</div> 
   				</div>
   				<div class="layui-col-md6">
   					<div class="fly-panel fly-panel-border">
   						<div class="fly-panel-title">
						         我的会员信息 
						</div>
						<div class="fly-panel-main layui-text" style="padding: 18px 15px; height: 100px; line-height: 26px;"> 
					        <p>您的财富经验值：${userSign.exp!}</p> 
					        <p>您的金币值：${userSign.gold!}</p> 
					        <p>您当前为：
					        @if(userSign.level_is_vip! == 1){
					        	<i class="layui-badge fly-badge-vip">${userSign.level_name!}</i>
					        @}else{
					         	${userSign.level_name!}
					        @}
					        </p>
					    </div> 
   					</div>
   				</div> 
   			</div>
   		</div>
	</div>
	<script type="text/javascript" src="${baseStaticUrl}/layui/layui.js"></script>
	<script>
	layui.use('element', function(){
	  var $ = layui.jquery
	  ,element = layui.element; //Tab的切换功能，切换事件监听等，需要依赖element模块
	  
	  //触发事件
	  var active = {
	    tabChange: function(){
	      //切换到指定Tab项
	      element.tabChange('demo', '22'); //切换到：用户管理
	    }
	  };
	  
	});
	
	layui.cache.page ='user';
	layui.cache.user =
	{username:'Epoch' ,
			uid:8919792 ,
			avatar:'//q.qlogo.cn/qqapp/101235792/F9D188DE2C24AE9590785EA4EC5ADC24/100' ,experience:110 ,sum:300 ,vip:2 ,sex:''};
	layui.config({
	  version: "3.0.0"
	  ,base: '${baseStaticUrl}/mods/' //这里实际使用时，建议改成绝对路径
	}).extend({
	  fly: 'index'
	}).use('fly');
	</script>
</body>